package com.hpdz.hotel_back.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders")
public class Order {
    @TableId(type = IdType.AUTO)
    private Integer id; // 主键id
    private Date createTime; // 订单创建时间
    private Integer custId; // 用户id
    private Integer roomId; // 房间id
    private Date enterTime; // 入住时间
    private Integer countDay; // 入住天数
    private Double shouldPay; // 应付金额
    private Double realPay; // 实际支付金额
    private String state; // 订单状态
}
